package love.yuanmengrobot.thousandlanguagegarden.sys.controller;
/*
 *   @Studio:CHJY · 源梦科技
 *   @Author:CHJY创幻
 *   @Ide:IntelliJ IDEA
 *   @Creation time:2021/7/12 16:09
 */

import love.yuanmengrobot.zframe.mvc.annotation.Controller;
import love.yuanmengrobot.zframe.mvc.annotation.RequestMapping;

@Controller
@RequestMapping("/sys")
public class SystemController {
    /**
     * 跳转到登录
     * @return
     */
    @RequestMapping("toLogin")//转发的写法，即跳转到jsp
    public String toLogin(){
        return "WEB-INF/view/sys/login/mainContent.jsp";
    }




    /**
     * 跳转到登录
     * @return
     */
    @RequestMapping("/toLoginError")//重定向的写法，即调用某个controller
    public String toLoginError(){
        return "redirect:/systoLogin.do";
    }



}
